package com.ouc.edu.ssm.service.impl;

import com.ouc.edu.ssm.bean.Marine_station;
import com.ouc.edu.ssm.mapper.QueryChiefListMapper;
import com.ouc.edu.ssm.service.QueryMarineStationByCentralStationIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class QueryMarineStationByCentralStationIdServiceImpl implements QueryMarineStationByCentralStationIdService{
@Autowired
private QueryChiefListMapper queryChiefListMapper;

    public void setQueryChiefListMapper(QueryChiefListMapper queryChiefListMapper) {
        this.queryChiefListMapper = queryChiefListMapper;
    }

    @Override
    public List<Marine_station> queryMarineStationByCentralStationId(int centralStationid) {
        List<Marine_station> listMarineStation = queryChiefListMapper.queryMarineStationByCentralStationId(centralStationid);
        return listMarineStation;
    }
}
